package com.wing.purchase.model.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 采购计划核对
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pur_purchase_plan_check")
public class PurchasePlanCheck extends BaseEntity<PurchasePlanCheck> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 是否已生成请购单
     */
    private Boolean hasGenerateOrder;

    /**
     * 单据号
     */
    private String receiptsNo;

    /**
     * 采购计划核对明细集合
     */
    @TableField(exist = false)
    private List<PurchasePlanCheckDetail> checkInfos = new ArrayList<>();

}
